Quiz
Frequently Incorrect Answers Part 1
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (18)
1A front-end web application is using Amazon Cognito user pools to handle the user authentication flow. A developer is integrating Amazon DynamoDB into the application using the AWS SDK for JavaScript.
How would the developer securely call the API without exposing the access or secret keys?- AConfigure Amazon Cognito identity pools and exchange the JSON Web Token (JWT) for temporary credentials.
- BRun the web application in an Amazon EC2 instance with the instance profile configured.
- CHardcore the credentials, use Amazon S3 to host the web application, and enable server-side encryption.
- DUse Amazon Cognito user pool JSON Web Tokens (JWITs) to access the DynamoDB APIs.
2A serverless application is using AWS Step Functions to process data and save it to a database. The application needs to validate some data with an external service before saving the data. The application will call the external service from an AWS Lambda function, and the external service will take a few hours to validate the data. The external service will respond to a webhook when the validation is complete. A developer needs to pause the Step Functions workflow and wait for the response from the external service.
What should the developer do to meet this requirement?- AUse the .wait ForTaskToken option in the Lambda function task state. Pass the token in the body.
- BUse the .waitForTaskToken option in the Lambda function task state. Pass the invocation request.
- CCall the Lambda function in synchronous mode. Wait for the external service to complete the processing.
- DCall the Lambda function in asynchronous mode. Use the Wait state until the external service completes the processing.
3A developer is creating a serverless application that uses an AWS Lambda function. The developer will use AWS CloudFormation to deploy the application. The application will write logs to Amazon CloudWatch Logs. The developer has created a log group in a CloudFormation template for the application to use. The developer needs to modify the CloudFormation template to make the name of the log group available to the application at runtime.
Which solution will meet this requirement?- AUse the AWS::Include transform in CloudFormation to provide the log group's name to the application.
- BPass the log group's name to the application in the user data section of the CloudFormation template
- CUse the CloudFormation template's Mappings section to specify the log group's name for the application.
- DPass the log group's Amazon Resource Name (ARN) as an environment variable to the Lambda function.
4A company has moved a legacy on-premises application to AWS by performing a lift and shift. The application exposes a REST API that can be used to retrieve billing information. The application is running on a single Amazon EC2 instance. The application code cannot support concurrent invocations. Many clients access the API, and the company adds new clients all the time.
A developer is concerned that the application might become overwhelmed by too many requests. The developer needs to limit the number of requests to the API for all current and future clients. The developer must not change the API, the application, or the client code.- APlace the API behind an Amazon API Gateway API. Set the server-side throttling limits.
- BPlace the API behind a Network Load Balancer. Set the target group throttling limits.
- CPlace the API behind an Application Load Balancer. Set the target group throttling limits.
- DPlace the API behind an Amazon API Gateway API. Set the per-client throttling limits.
5An ecommerce company wants to redirect users to a country-specific website when they enter the example.com website. For example, the company wants to redirect United States users to example.com/us/ and wants to redirect French users to example.com/fr/. The web application is using Amazon CloudFront and an Application Load Balancer with an Amazon Elastic Container Service (Amazon ECS) cluster. The application's domain name resolution is configured in an Amazon Route 53 public hosted zone.
Which solution will meet these requirements with the LEAST operational effort?- AUpdate the routing policy for the application's Route 53 record to specify geolocation routing. Configure listener rules based on a unique alias location to redirect requests to the correct URLs by country.
- BCreate a CloudFront function to inspect the CloudFront-Viewer-Country header and return redirect responses to different URLs based on user location.
- COn the ECS web server configuration, use a GeoIP database to look up the requested IP address and redirect requests to the correct URLs by country.
- DUse AWS WAF to determine the country of origin. Create an AWS WAF custom rule with a geographic match condition to redirect traffic from each country to the correct URL.
6A developer has built an application that inserts data into an Amazon DynamoDB table. The table is configured to use provisioned capacity. The application is deployed on a burstable nano Amazon EC2 Instance. The application logs show that the application has been failing because of a ProvisionedThroughputExceedException error.
Which actions should the developer take to resolve this issue? (Choose two.)- AMove The application to a larger EC instance.
- BIncrease the number or read capacity units (RCUs) that are provisioned for the DynamoDB table.
- CReduce the frequency of requests to DynamoDB by implement ng exponential backoff.
- DIncrease the frequency of requests to DynamoDB by decreasing the retry delay.
- EChange the capacity mode of the DynamoDB table from provisioned to on-demand.
7Given the source code for an AWS Lambda function in the local file store.py containing a handler function called get_store and the following AWS CloudFormation template:
Transform: AWS::Serverless-2016-10-31
Resources:
StoreFunc:
Type: AWS::Serverless::Function
Properties:
Handler: store.get_store
Runtime: python 3.6
What should be done to prepare the template so that it can be deployed using the AWS CLI command aws cloudformation deploy?- AUse aws cloudformation compile to base64 encode and embed the source file into a modified CloudFormation template.
- BUse aws cloudformation package to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
- CUse aws lambda zip to package the source file together with the CloudFormation template and deploy the resulting zip archive.
- DUse aws serverless create-package to embed the source file directly into the existing CloudFormation template.
8A developer is making changes to a custom application that uses AWS Elastic Beanstalk.
Which solutions will update the Elastic Beanstalk environment with the new application version after the developer completes the changes? (Choose two.)- APackage the application code into a .zip file. Use the AWS Management Console to upload the zip file and deploy the packaged application.
- BPackage the application code into a .tar file. Use the AWS Management Console to create a new application version from the .tar file. Update the environment by using the AWS CLI.
- CPackage the application code into a .tar file. Use the AWS Management Console to upload the .tar file and deploy the packaged application.
- DPackage the application code into a .zip file. Use the AWS CLI to create a new application version from the .zip file and to update the environment.
- EPackage the application code into a .zip file. Use the AWS Management Console to create a new application version from the .zip file. Rebuild the environment by using the AWS CLI.
9A developer has a stateful web server on-premises that is being migrated to AWS. The developer must have greater elasticity in the new design.
How should the developer re-factor the application to make it more elastic? (Choose two.)- AUse pessimistic concurrency on Amazon DynamoDB.
- BUse Amazon CloudFront with an Auto Scaling group.
- CUse Amazon CloudFront with an AWS Web Application Firewall.
- DStore session state data in an Amazon DynamoDB table.
- EUse an ELB with an Auto Scaling group.
10A developer is creating an AWS CloudFormation template for an application. The application includes an Amazon RDS database. The password to be set for the resource's MasterUserPassword property is already stored in AWS Secrets Manager.
How can the developer reference the value of the password in the CloudFormation template?- AUse a parameter in the CloudFormation template with the same name of the secret.
- BUse the ssm dynamic reference by specifying the name of the secret and its version.
- CUse the secretsmanager dynamic reference by specifying the appropriate reference-key segment.
- DUse the ssm-secure dynamic reference by specifying the name of the secret and its version.
11A company needs an event-management platform to accept registrations for an upcoming event. The platform must perform a single invocation of an existing AWS Lambda function 10 minutes after a user completes a new account registration.
Which solution will meet these requirements?- AAdd an item to an Amazon DynamoDB table. Set the item TTL to 10 minutes. Invoke the Lambda function when the TTL expires.
- BCreate an ongoing Amazon EventBridge (Amazon CloudWatch Events) rule with a rate expression of 600 seconds. Create a rule/target to invoke the Lambda function.
- CSend a message to an Amazon Simple Queue Service (Amazon SQS) delay queue. Set the queue to 600 seconds. Configure the Lambda function with the queue as an event source.
- DPut a record in Amazon Kinesis Data Streams. Configure the Lambda function to use the data stream as an event source. Define the shard iterator AT_TIMESTAMP setting to 10 minutes.
12A developer is building a three-tier web application that should be able to handle a minimum of 5000 requests per minute. Requirements state that the web tier should be completely stateless while the application maintains session state for the users.
How can session data be externalized, keeping latency at the LOWEST possible value?- ACreate an Amazon RDS instance, then implement session handling at the application level to leverage a database inside the RDS database instance for session data storage.
- BImplement a shared file system solution across the underlying Amazon EC2 instances, then implement session handling at the application level to leverage the shared file system for session data storage.
- CCreate an Amazon ElastiCache Memcached cluster, then implement session handling at the application level to leverage the cluster for session data storage.
- DCreate an Amazon DynamoDB table, then implement session handling at the application level to leverage the table for session data storage.
13A developer creates a web service that performs many critical activities. The web service code uses an AWS SDK to publish noncritical metrics to Amazon CloudWatch by using the PutMetricData API. The web service must return results to the caller as quickly as possible. The response data from the PutMetricData API is not necessary to create the web service response.
Which solution will MOST improve the response time of the web service?- AUpgrade to the latest version of the AWS SDK.
- BCall the PutMetricData API in a background thread.
- CUse the AWS SDK to perform a synchronous call to an AWS Lambda function. Call the PutMetricData API within the Lambda function.
- DSend metric data to an Amazon Simple Queue Service (Amazon SQS) queue. Configure an AWS Lambda function with the queue as the event source. Call the PutMetricData API within the Lambda function.
14A developer is deploying an application in the AWS Cloud by using AWS CloudFormation. The application will connect to an existing Amazon RDS database. The hostname of the RDS database is stored in AWS Systems Manager Parameter Store as a plaintext value. The developer needs to incorporate the database hostname into the CloudFormation template to initialize the application when the stack is created.
How should the developer reference the parameter that contains the database hostname?- AUse the ssm dynamic reference.
- BUse the Ref intrinsic function.
- CUse the Fn::ImportValue intrinsic function.
- DUse the ssm-secure dynamic reference.
15A developer is deploying an application on Amazon EC2 instances that run in Account A. The application needs to read data from an existing Amazon Kinesis data stream in Account B.
Which actions should the developer take to provide the application with access to the stream? (Choose two.)- AUpdate the instance profile role in Account A with stream read permissions.
- BCreate an IAM role with stream read permissions in Account B.
- CAdd a trust policy to the instance profile role and IAM role in Account B to allow the instance profile role to assume the IAM role.
- DAdd a trust policy to the instance profile role and IAM role in Account B to allow reads from the stream.
- EAdd a resource-based policy in Account B to allow read access from the instance profile role.
16A Company runs continuous integration/continuous delivery (CI/CD) pipelines for its application on AWS CodePipeline. A Developer must write unit tests and run them as part of the pipelines before staging the artifacts for testing.
How should the Developer incorporate unit tests as part of CI/CD pipelines?- ACreate a separate CodePipeline pipeline to run unit tests
- BUpdate the AWS CodeBuild specification to include a phase for running unit tests
- CInstall the AWS CodeDeploy agent on an Amazon EC2 instance to run unit tests
- DCreate a testing branch in AWS CodeCommit to run unit tests
17A banking application processes thousands of transactions each second. Each transaction payload must have end-to-end encryption. The application encrypts each transaction locally by using the AWS Key Management Service (AWS KMS) GenerateDataKey operation. A developer is testing the application and receives a ThrottlingException error.
Which actions are best practices to resolve this error? (Choose two.)- AUse the LocalCryptoMaterialsCache feature of the AWS Encryption SDK encryption library.
- BCall the AWS KMS Encrypt operation directly to allow AWS KMS to encrypt the data.
- CCreate a case in the AWS Support Center to increase the quota for the account.
- DUse Amazon Simple Queue Service (Amazon SQS) to queue the requests to AWS KMS.
- ESwitch to an AWS KMS custom key store.
18A developer wants to implement authentication using Amazon Cognito user pools for an existing API in Amazon API Gateway. After creating the Amazon Cognito user pool, the developer tests the GET request to the API. Unauthenticated requests to the API return a 200 OK status response.
Which combination of additional steps are required to complete the authentication implementation? (Choose two.)- ACreate an Amazon Cognito authorizer in API Gateway and specify the Amazon Cognito user pool.
- BCreate an AWS Lambda authorizer in API Gateway and specify the Amazon Cognito user pool.
- CSpecify the authorizer in the GET method section of API Gateway and redeploy the API
- DUse Amazon Cognito user pools to make and authenticate the request to API Gateway.
- ECreate an Amazon Cognito authorizer in API Gateway and specify the Amazon Cognito identity pool.
Information
- Description
- Information Technology (AWS DVA-C02) Quiz on Frequently Incorrect Answers Part 1, created by Arfel Jun Velasco on 25/01/2023.
- Author
- Arfel Jun Velasco
- Language
- English
- Views
- 3
- Tags
- Rating
- No ratings yet Rate this quiz