Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

MCQ 2

You are a developer working on a project hosted on Azure DevOps. You need to manage and
publish your project's packages, such as NuGet packages. Which Azure DevOps service should
you use?
Select an option
Azure Boards
Azure Artifacts
Azure Pipelines
Azure Test Plans
ChatGPT
You should use Azure Artifacts to manage and publish your project's packages, such as NuGet
packages, on Azure DevOps.

Roure Cosmos DB is Select an option


sql database
RDBMS
NO-SQL database
None of the given choices.
ChatGPT
No-SQL database

Which of the following Trigger can be used to run the function at the specified schedule
Select an option
http
Queue
Timer
no trigger
ChatGPT
The correct option is: Timer

You are analyzing a dataset that contains information about products, including their prices, and
descriptions in JSON format. What type of data does this dataset sent?
Structured
Semi-structured
Unstructured
None of the given choices
ChatGPT
The dataset you are analyzing, containing information about products with prices and
descriptions in JSON format, is an example of Semi-structured data.

A development team of "Delta" project needs to store and access unstructured data, such as
documents, images, and videos, with the ability to secure access to specific resources Which
Azure Storage service should they choose?
Select an option
Azure Blob storage
Azure Cosmos DB
Azure Queue storage
Azure Table storage
ChatGPT
The development team of the "Delta" project should choose Azure Blob storage to store and
access unstructured data like documents, images, and videos while also securing access to
specific resources.

Consider the following API controller public class Flight Controller: Controller [ApVersion(207)
ApiController Which of the following options can be used to access the API actions for version
2.0?
http://Flights.com/api/Flight?api-version-20
http://Flights.com/api/Flight/version=2.0
http://Flights.com/api/Flight/api-version/2.0
http://Flights.com/api/Flight/2.0
ChatGPT
The correct option to access the API actions for version 2.0 is: http://Flights.com/api/Flight?api-
version=2.0

Which of the following options is FALSE, with respect to API controllers?


API actions return views
The controller is a class which contains action methods
Each action method typically maps to a request URI
The action methods are responsible for implementing the HTTP requests
ChatGPT
The option that is FALSE with respect to API controllers is: API actions return views.
which of the following options are true, with respect to WEB API? Choose 2 correct options WEB
API services can be consumed only by web applications.
WEB API offers platform independence by ensuring that API services can be consumed by any
client
WEB API uses models and controllers, but no views
WEB API, like MVC, divides a service into model, views and controllers
ChatGPT
The correct options are:

1. WEB API offers platform independence by ensuring that API services can be
consumed by any client.
2. WEB API uses models and controllers, but no views.

WEB API does not necessarily require the consumer to be a web application, and it does not
include views like the traditional MVC pattern.

Which of the following ISON options can be used to represent the below information about an
Employee name parker age 20
(name: "parker", age 20)
("name" "parker", "age" 201
{ "name" = "parker", "age"=20)
ChatGPT
The correct option to represent the information about an Employee (name: "parker", age 20) is:

(name: "parker", age 20)

A developer has created an API service which returns a list of flights, to be used in a ticket
booking App. The URL of the API has been shared with you. You must create an Angular service
which invokes the API and returns the flight details to a component Which of the following
options can be used to create the service? return this http post<>("/api/flights") pipe(map(result
=>{ this flights.push(result); return, public flights=[]; getFlights() return
this.http.get<[]>("/api/flights") pipe(map(result =>{
ChatGPT
The correct option to create the Angular service that invokes the API and returns the flight details
to a component is:

typescriptCopy code
return this . http . get <[]>( "/api/flights" ). pipe ( map ( result => { this . flights . push (result); return
this . flights ; }));

A developer has created an Angular component for displaying product information and adding
the product to a shopping cart. The product must be added to the cart when the "Add to cart"
button is clicked. Which of the given options will correctly replace the TODO in the below code
snippet? <div "ngif="product"> <h3> product name }}</h3> ches product price | currency
11</h4> spall product description}</p> Select an option <button
(click)="addToCart(product)">Add to cart</button> <button (click)= "this addToCart(this
product)">Add to cart</button> <button (onclick)="addToCart(product)">Add to cart</button
<button (click)=([addToCart(product)))>Add to cart</button
ChatGPT
The correct option to replace the TODO in the code snippet is:

htmlCopy code
<button (click)="addToCart(product)"> Add to cart </button>

The ________decorator specifies that Angular can use this class in the Dependency
Select an option
Component
Service
Injectable
NgModule
ChatGPT
The correct option is:

Injectable

NgModuleYou have created a component with a method called FetchAccount, when the user
clicks on a button in the view the FetchAccount method must be invoked. Which of the following
options will you use for this? Select an option <button (onclick)="FetchAccount()">Get Account
Details</button> <button (click)="FetchAccount0">Get Account Details</button> <button
[(click)]="FetchAccount()">Get Account Details</button> <button click="FetchAccount)">Get
Account Details</button>
ChatGPT
The correct option to invoke the FetchAccount method when the user clicks on a button is:

htmlCopy code
<button (click)="FetchAccount()"> Get Account Details </button>

Which of the following is/are advantages of using ServerLess Computing


(a) Auto scale up/down based on demand
(b) by High Availability
Only a
Only b
Both a and b
Neither a nor b
ChatGPT
The correct option is: Both a and b

Serverless Computing offers advantages such as auto scaling up/down based on demand and
high availability.

You are developing a web application that requires a database backend. The application will be
hosted on Microsoft Azure. You need to choose the appropriate Azure service to store and
manage the relational database. Which option should you choose?
Azure Cosmos DB
Azure SQL Database
Azure Blob Storage
Azure Table Storage
ChatGPT
For hosting a relational database on Microsoft Azure, the appropriate option to choose is Azure
SQL Database.

A development team of "Delta" project needs to store and access unstructured data, such as
documents, images, and videos, with the ability to secure access to specific resources. Which
Azure Storage service should they choose?
Azure Blob storage
Azure Cosmos DB
Azure Queue storage
Azure Table storage
ChatGPT
The development team of the "Delta" project should choose Azure Blob storage to store and
access unstructured data like documents, images, and videos while also securing access to
specific resources.

You are a developer working on a project hosted on Azure DevOps. You need to manage and
publish your project's packages, such as NuGet packages. Which Azure DevOps service should
you use?
Azure Boards
Azure Artifacts
Azure Pipelines
Azure Test Plans
ChatGPT
You should use Azure Artifacts to manage and publish your project's packages, such as NuGet
packages, on Azure DevOps.
Which type of blob in Azure Storage is optimized for storing large amounts of unstructured data,
such as videos or audio files?
Page Blob
Block Blob
Append Blob
All of the given choices
ChatGPT
The type of blob in Azure Storage that is optimized for storing large amounts of unstructured
data, such as videos or audio files, is Block Blob.

Azure Virtual Machine is an example of


Infrastructure as a Service (laas)
Platform as a Service (PaaS)
Software as a Service (SaaS)
Database as a service(DaaS)
ChatGPT
Infrastructure as a Service (IaaS)

Which of the following can be hosted as part of App Service?


Azure Web
App Azure
Mobile App
Azure API App
All of the given choices
ChatGPT
All of the given choices can be hosted as part of Azure App Service. This includes Azure Web
Apps, Azure Mobile Apps, and Azure API Apps.

Which of the following hosting Model is suitable for serverless azure function?
Select an option
Consumption App
Service
Premium
Standard
ChatGPT
The suitable hosting model for serverless Azure Functions is:
Consumption

REST APIs are designed around, which are any kind of data, or services accessed a client
URI'S
Models
URL's
Resources
ChatGPT
REST APIs are designed around Resources, which are any kind of data or services accessed by a
client.

CosmosDB Emulator is available to work with


Mongo DB API
Azure Table Storage
API SQL API
None of the given choices.
ChatGPT
The CosmosDB Emulator is available to work with the SQL API.

Which of the following statements are FALSE, with respect to Angular services Services can be
shared across multiple com Services have a Uil specified using the templar property Services
allow to keep logic out of component classes Services can be injected in the application using
Angular's dependency injection (DI)
ChatGPT
The statement that is FALSE with respect to Angular services is:

Services have a UI specified using the templar property

The other statements are true. Services can be shared across multiple components, allow keeping
logic out of component classes, and can be injected into the application using Angular's
dependency injection (DI).

Which of the following statements are FALSE with respect to Angular services?
Services can be shared across multiple components
Services have a UI specified using the templateURL property
Services allow to keep logic out of component classes
Services can be injected in the application using Angular's dependency injection (DI).
ChatGPT
The statement that is FALSE with respect to Angular services is:

Services have a UI specified using the templateURL property

The other statements are true. Services can be shared across multiple components, allow keeping
logic out of component classes, and can be injected into the application using Angular's
dependency injection (DI).

A developer has created a component with a method called Reload. This method must be
invoked when a button is clicked and the developer has written the following markup for the
same input <type="button" click Reload0" />
However, the method is not invoked when the button is clicked. What must be done to rectify
this error?
<input type="button" (click) "Reload0" />
<input type="button" onclick= "Reload0" />
<input type="button" [click]= "ReLoad0" />
<input type="button" ((click)) "Reload()" />
ChatGPT
To rectify the error, you should use the correct syntax for Angular's event binding. The correct
markup should be:

htmlCopy code
<input type="button" (click)="Reload()" />

So the correct option is:

htmlCopy code
<input type="button" (click)="Reload()" />

An account holder logs in to a bank web site. On login, the site fetches the contact information
from the database and displays the same to the account holder. The account holder can modify
the contact info if required and save the updated info to the database What type of binding will
be used for this functionality in Angular?
One way binding from source to view
Two way binding
One way binding from source to view
One time binding from source to view
ChatGPT
The appropriate type of binding to use for this functionality in Angular is:

Two-way binding
Two-way binding allows changes made by the account holder in the view to be reflected in the
source (model), and changes in the source (model) to be reflected in the view as well. This is
suitable for scenarios where the user can modify data that should stay in sync with the underlying
data model.

A developer has created an Angular service, which invokes an API and returns flight details to a
component. The service class exposes a method called getFlights, for this purpose You have been
given the task of coding the component Which of the following options can be used to invoke
the service from the component? import (FlightService) from /services/flight service export class
ConsumerComponent implements Oninit( constructor(private service: FlightService) service-new
FlightService(); 1 ngOnInit():void( this service.getFlights().subscribe();
ChatGPT
The correct option for invoking the service from the component is:

Typescript Copy code


import { FlightService } from './services/flight-service' ; export class ConsumerComponent
implements OnInit { constructor ( private service: FlightService ) {} ngOnInit (): void {
this . service . getFlights (). subscribe (); } }

You have created a component with a method called FetchAccount, when the user clicks on a
button in the view, the FetchAccount method must be invoked.
Which of the following options will you use for this?
<button (onclick)="FetchAccount()">Get Account Details</button>
<button (click)="FetchAccount()">Get Account Details </button>
<button [(click)]="FetchAccount()">Get Account Details</button
<button click="FetchAccount()">Get Account Details</button>
ChatGPT
The correct option to invoke the FetchAccount method when the user clicks on a button is:

htmlCopy code
<button (click)="FetchAccount()"> Get Account Details </button>

which of the following is NOT a valid ISON type?


Select an option
Object
integer
array
string
ChatGPT
The valid JSON types are object, integer, array, and string.
So, integer is not a valid JSON type.

REST APIs are designed around, which are any kind of data, or services accessed by a client
URI'S
Models
URL'S
Resources
ChatGPT
REST APIs are designed around Resources, which are any kind of data or services accessed by a
client.

Which of the following options is NOT a method of API versioning?


Select an option
URI versioning
Response Body
Versioning Query
String Versioning
Header Versioning
ChatGPT
Response Body Versioning is not a common method of API versioning. The common methods
include URI versioning, Query String Versioning, and Header Versioning.

Your development team has been assigned the task of creating an API Action to retrieve let of
fights from a database. The database operations are done by a repository class. The list of fights
must be returned to the client with a status code of 200. If there is any error, a status code 500
must be returned. Which of the following options will best meet this requirement? Note: Assume
that repository is an instance of the Repository class and GetFlights is the repository method
which retrieves flight details from the database try var result = repository GetFlightsAsync( return
result catch return InternalServerError();
ChatGPT
The correct approach to meet the requirement of returning a list of flights with a status code of
200 in case of success and a status code of 500 in case of error would be:

csharpCopy code
try { var result = await repository.GetFlightsAsync(); return Ok(result); // Status code 200 for success
} catch { return InternalServerError(); // Status code 500 for error }

In this code, the Ok() method returns a response with status code 200 and the retrieved flight
details, while InternalServerError() returns a response with status code 500.
Consider the following API controller. public class FightController: Controller T
Select an option
[Route("api/v/apiVersion)/flight")]
[Route("api/vapiVersion/flight")]
[Route("api/(vapiVersion)/flight")]
[Route("api/2.0/flight")]
ChatGPT
The correct option for defining a route for the given API controller would be:

csharpCopy code
[ Route("api/v{apiVersion}/flight") ]

This allows for dynamic insertion of the apiVersion parameter into the route.

Consider the following blob URL: https://mydata.blob.core.windows.net/pictures/one.jpg Identify


the storage container name?
Select an option mydata pictures one.jpg entire URL
ChatGPT
The correct storage container name from the given blob URL
"https://mydata.blob.core.windows.net/pictures/one.jpg" is:

pictures

Which of the following is also known as internal cloud?


Select an option
Public cloud
Private cloud
Hybrid cloud
Community cloud
ChatGPT
The term Private cloud is also known as an internal cloud.

Azure Virtual Machine is an example of_______in Azure?


Infrastructure as a Service (laaS)
Platform as a Service (PaaS)
Software as a Service (SaaS)
Database as a service(DaaS)
ChatGPT
Azure Virtual Machine is an example of Infrastructure as a Service (IaaS) in Azure.

Which of the following can be hosted as part of App Service?


Azure Web App
Azure Mobile App
Azure API App
All of the given choices
ChatGPT
All of the given choices can be hosted as part of Azure App Service. This includes Azure Web
Apps, Azure Mobile Apps, and Azure API Apps.

Aure From the list of data Storage options Identify the storage most suitable for doning
Unstructured Data?
Choose TWO Most appropriate options]
Azure SQL Database
Azure Cosmos DB
Azure Blob Storage
Azure database for MySQL
File Storage
ChatGPT
The two most suitable options for storing unstructured data are:

1. Azure Blob Storage


2. File Storage
in order to create a resource in Azure, what is the first thing we need?
Azure Resource Group
Azure Web App
Azure Subscription
Azure Virtual Machine
ChatGPT
In order to create a resource in Azure, the first thing you need is an Azure Subscription.

Which of the following hosting Model is suitable for serverless azure function?
Select an option
Consumption
App Service
Premium
Standard
ChatGPT
The suitable hosting model for serverless Azure Functions is:

Consumption

Which of the following is/are advantages of using Serverless Computing


A Auto scale up/down based on demand
B High Availability
only a
only b
Both a and b
Neither a nor b
ChatGPT
The advantages of using Serverless Computing include both:

A. Auto scale up/down based on demand B. High Availability

So, the correct option is: Both a and b

Which of the statement is correct about the Azure Cosmos DB Emulator?


The Azure Cosmos DB Emulator is a production-ready, globally distributed database service
offered by Microsoft.
The Azure Cosmos DB Emulator is only accessible from within the Microsoft Azure cloud
environment.
The Azure Cosmos DB Emulator provides a local environment that emulates the Azure Cosmos
DB service for development purposes
the Azure Cosmos DB Emulator requires an internet conne to function
ChatGPT
The correct statement about the Azure Cosmos DB Emulator is:

The Azure Cosmos DB Emulator provides a local environment that emulates the Azure
Cosmos DB service for development purposes.

Cosmor Emulator is available to work with ____ only


Select an option
Mongo DB API
Azure Table Storage
SQL API
None of the given choices.
ChatGPT
The correct option is:

SQL API

The Cosmos DB Emulator is available to work with the SQL API, which is one of the APIs provided
by Azure Cosmos DB.

Which of the following is known as public registry of docker images Docker Hub Docker Api
Docker Daemon Git Hub
ChatGPT
The Docker Hub is known as the public registry of Docker images.

Which of the following represents as Docker server


Select an option
Docker API
Docker
Daemon Docker
CLI
All Of the given choices
ChatGPT
The Docker Daemon represents the Docker server.

Which of the following statements is correctly describing the Azure Pipeline Agents?
1 The agent is computing infrastructure with installed agent software that operatesin a sequential
manner running one job at a time.
2 An agent is a computing infrastructure that incorporates agent software capable of concurently
executing multiple jobs.
Only 1.
Only 2.
Both the statements
None of the given choices.
ChatGPT
The correct statement describing Azure Pipeline Agents is:

Only 2. An agent is a computing infrastructure that incorporates agent software capable of


concurrently executing multiple jobs.

You are developing a web application that requires a database backend The application will be
hosted on Microsoft Azure. You need to choose the appropriate Azure service to store and
manage the relational database Which option should you choose?
Azure Cosmos
DB Azure SQL
Database
Azure Blob
Storage Azure Table Storage
ChatGPT
For storing and managing a relational database on Microsoft Azure, the appropriate option to
choose is:

Azure SQL Database

You might also like