Quiz
DVA-C01 AWS Certified Developer (01)
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 (65)
1A developer from AnyCompany's AWS account needs access to the Example Corp AWS
account AnyCompany uses an identity provider that is compatible with OpenID Connect.
What is the MOST secure way for Example Corp to allow developer access?- AA. Create a cross-account role and call the AssumeRole API operation
- BB. Create a user in the Example Corp account and provide the access keys
- CC. Create a user in the Example Corp account and provide the credentials
- DD. Create a cross-account role and call the AssumeRoleWithWebldentity API operation
2A developer registered an AWS Lambda function as a target for an Application Load Balancer (ALB) using a CLI command. However, the Lambda function is not being invoked
when the client sends requests through the ALB.
Why is the Lambda function not being invoked?- AA. A Lambda function cannot be registered as a target for an ALB
- BB. A Lambda function can be registered with an ALB using AWS Management Console
only - CC. The permissions to invoke the Lambda function are missing
- DD. Cross-zone is not enabled on the ALB
3You have written an application that uses the Elastic Load Balancing service to spread traffic to several web servers. Your users complain that they are sometimes forced to login
again in the middle of using your application, after they have already logged in. This is not behavior you have designed.
What is a possible solution to prevent this happening?- AA. Use instance memory to save session state.
- BB. Use instance storage to save session state.
- CC. Use EBS to save session state
- DD. Use ElastiCache to save session state
- EE. Use Glacier to save session slate
4A Developer has published an update to an application that is served to a global user base using Amazon CloudFront. After deploying the application, users are not able to see the updated changes.
How can the Developer resolve this issue?- AA. Remove the origin from the CloudFront configuration and add it again.
- BB. Disable forwarding of query strings and request headers from the CloudFront distribution configuration.
- CC. Invalidate all the application objects from the edge caches.
- DD. Disable the CloudFront distribution and enable it again to update all the edge locations
5An application is running on an EC2 instance. The Developer wants to store an application metric in Amazon CloudWatch.
What is the best practice for implementing this requirement?- AA. Use the PUT Object API call to send data to an S3 bucket. Use an event notification to
invoke a Lambda function to publish data to CloudWatch. - BB. Publish the metric data to an Amazon Kinesis Stream using a PutRecord API call.
Subscribe a Lambda function that publishes data to CloudWatch - CC. Use the CloudWatch PutMetricData API call to submit a custom metric to CloudWatch.
Provide the required credentials to enable the API call. - DD. Use the CloudWatch PutMetricData API call to submit a custom metric to CloudWatch.
Launch the EC2 instance with the required IAM role to enable the API call.
- AA. Use the PUT Object API call to send data to an S3 bucket. Use an event notification to
6A developer has written a serverless application and wants to deploy it to AWS Lambda to leverage the function's multi-threaded execution to improve performance. Which action
should the developer take to achieve these requirements?- AA. increase the Lambda function execution timeout
- BB. Use unreserved account concurrency.
- CC. Increase the memory allocation of the Lambda function
- DD. Set the reserved concurrency of the Lambda function to a higher number
7A Developer executed a AWS CLI command and received the error shown below:
What action should the Developer perform to make this error human-readable?- AA. Make a call to AWS KMS to decode the message
- BB. Use the AWS STS decode-authorization-message API to decode the message
- CC. Use an open source decoding library to decode the message.
- DD. Use the AWS IAM decode-authorization-message API to decode this message.
8An application running on an Amazon Linux EC2 instance needs to manage the AWS infrastructure.
How can the EC2 instance be configured to make AWS API calls securely?- AA. Sign the AWS CLI command using the signature version 4 process.
- BB. Run the aws configure AWS CLI command and specify the access key id and secret access key.
- CC. Specify a role for the EC2 instance with the necessary privileges.
- DD. Pass the access key id and secret access key as parameters for each AWS CLI command.
9A developer is implementing authentication and authorization for an application. The developer needs to ensure that the user credentials are never exposed. Which approach should the developer take to meet this requirement?
- AA. Store the user credentials In Amazon DynamoDB Build an AWS Lambda function to
validate the credentials and authorize users. - BB. Deploy a custom authentication and authorization API on an Amazon EC2 instance.
Store the user credentials in Amazon S3 and encrypt the credentials using Amazon S3
server-side encryption. - CC. Use Amazon Cognito to configure a user pool, and use the Cognito API to authenticate and authorize the user.
- DD. Store the user credentials In Amazon RDS Enable the encryption option for the Amazon
RDS D8 instances Build an API using AWS Lambda to validate the credentials and
authorize users.
- AA. Store the user credentials In Amazon DynamoDB Build an AWS Lambda function to
10A Developer is creating a Lambda function that will generate and export a file. The function requires 100 MB of temporary storage for temporary files while executing. These files will
not be needed after the function is complete.
How can the Developer MOST efficiently handle the temporary files?- AA. Store the files in EBS and delete the files at the end of the Lambda function.
- BB. Copy the files to EFS and delete the files at the end of the Lambda function.
- CC. Store the files in the /tmp directory and delete the files at the end of the Lambda
function. - DD. Copy the files to an S3 bucket with a lifecycle policy to delete the files
11A developer is building an application on Amazon EC2 The developer encountered an "Access Denied" error on some of the API calls to AWS services while testing. The
developer needs to modify permissions that have been already given to the instance How can these requirements be met with minimal changes and minimum downtime?- AA. Make a new 1AM role with the needed permissions Stop the instance. Attach the new
1AM role to the instance Start the instance. - BB. Delete the existing 1AM role Attach a new 1AM role with the needed permissions.
- CC. Stop the instance Update the attached 1AM role adding the needed permissions. Start
the instance. - DD. Update the attached IAM role adding the needed permissions
- AA. Make a new 1AM role with the needed permissions Stop the instance. Attach the new
12Company C has recently launched an online commerce site for bicycles on AWS. They
have a "Product" DynamoDB table that stores details for each bicycle, such as, manufacturer, color, price, quantity and size to display in the online store. Due to customer demand, they want to include an image for each bicycle along with the existing details. Which approach below provides the least impact to provisioned throughput on the "Product" table?- AA. Serialize the image and store it in multiple DynamoDB tables.
- BB. Create an "Images" DynamoDB table to store the Image with a foreign key constraint to
the "Product” table. - CC. Add an image data type to the "Product" table to store the images in binary format.
- DD. Store the images in Amazon S3 and add an S3 URL pointer to the "Product" table item
for each image.
13Which of the following platforms are supported by Elastic Beanstalk? Choose 2 answers
- AA. Apache Tomcat
- BB. .NET
- CC. IBM Websphere
- DD. Oracle JBoss
- EE. Jetty
14An application is being developed to audit several AWS accounts. The application will run in Account A and must access AWS services in Accounts B and C.
What is the MOST secure way to allow the application to call AWS services in each audited account?- AA. Configure cross-account roles in each audited account. Write code in Account A that assumes those roles.
- BB. Use S3 cross-region replication to communicate among accounts, with Amazon S3
event notifications to trigger Lambda functions. - CC. Deploy an application in each audited account with its own role. Have Account A
authenticate with the application. - DD. Create an IAM user with an access key in each audited account. Write code in Account
A that uses those access keys.
15Company D is running their corporate website on Amazon S3 accessed from http//www.companyd.com. Their marketing team has published new web fonts to a separate S3 bucket accessed by the S3 endpoint https://s3-us-west1.amazonaws.com/cdfonts. While testing the new web fonts, Company D recognized the web fonts are being blocked by the browser.
What should Company D do to prevent the web fonts from being blocked by the browser?- AA. Enable versioning on the cdfonts bucket for each web font
- BB. Create a policy on the cdfonts bucket to enable access to everyone
- CC. Add the Content-MD5 header to the request for webfonts in the cdfonts bucket from the
website - DD. Configure the cdfonts bucket to allow cross-origin requests by creating a CORS
configuration
16A Developer is going to deploy an AWS Lambda function that requires significant CPU utilization. Which approach will MINIMIZE the average runtime of the function?
- AA. Deploy the function into multiple AWS Regions.
- BB. Deploy the function into multiple Availability .
- CC. Deploy the function using Lambda layers.
- DD. Deploy the function with its memory allocation set to the maximum amount.
17What is required to trace Lambda-based applications with AWS X-Ray?
- AA. Send logs from the Lambda application to an S3 bucket trigger a Lambda function from
that bucket to send data to AWS X-Ray - BB. Trigger a Lambda function from the application logs in Amazon CloudWatch to submit tracing data to AWS X-Ray
- CC. Use an IAM execution role to give the Lambda function permissions and enabled
tracing - DD. Update and add AWS X-ray daemon code to relevant parts of the Lambda function to
set up the trace
- AA. Send logs from the Lambda application to an S3 bucket trigger a Lambda function from
18Your application is trying to upload a 6 GB file to Simple Storage Service and receive a “Your proposed upload exceeds the maximum allowed object size." error message. What is a possible solution for this?
- AA. None, Simple Storage Service objects are limited to 5 GB.
- BB. Use the multi-part upload API for this object.
- CC. Use the large object upload API for this object.
- DD. Contact support to increase your object size limit.
- EE. Upload to a different region.
19Which of the following are correct statements with policy evaluation logic in AWS Identity and Access Management? Choose 2 answers
- AA. By default, all requests are denied.
- BB. An explicit allow overrides an explicit deny
- CC. An explicit allow overrides default deny.
- DD. An explicit deny does not override an explicit allow
- EE. By default, all request are allowed
20How can software determine the public and private IP addresses of the Amazon EC2 instance that it is running on?
- AA. Query the appropriate Amazon CloudWatch metric
- BB. Use ipconfig or ifconfig command.
- CC. Query the local instance userdata.
- DD. Query the local instance metadata
21A Developer is migrating an on-premises application to AWS. The application currently takes user uploads and saves them to a local directory on the server. All uploads must be
saved and made immediately available to all instances in an Auto scaling group. Which approach will meet these requirements?- AA. Use Amazon EBS and configure the application AMI to use a snapshot of the same EBS instance on boot
- BB. Use Amazon S3 and rearchitect the application so all uploads are placed in S3
- CC. Use instance storage and share it between instances launched from the same Amazon
machine image (AMI). - DD. Use Amazon EBS and file synchronization software to achieve eventual consistency
among the auto scaling group.
22A company developed a set of APIs that are being served through the Amazon API
Gateway. The API calls need to be authenticated based on OpenID identity providers such as Amazon or Facebook. The APIs should allow access based on a custom authorizatio model. Which is the simplest and MOST secure design to use to build an authentication and authorization model for the APIs?- AA. Use Amazon Cognito user pools and a custom authorizer to authenticate and authorize users based on JSON Web Tokens.
- BB. Build a OpenID token broker with Amazon and Facebook. Users will authenticate with
these identify providers and pass the JSON Web Token to the API to authenticate each API call. - CC. Store user credentials in Amazon DynamoDB and have the application retrieve temporary credentials from AWS STS. Make API calls by passing user credentials to the APIs for authentication and authorization.
- DD. Use Amazon RDS to store user credentials and pass them to the APIs for authentications and authorization.
23You are inserting 1000 new items every second in a DynamoDB table. Once an hour these items are analyzed and then are no longer needed. You need to minimize provisioned throughput, storage, and API calls.
Given these requirements, what is the most efficient way to manage these Items after the analysis?- AA. Retain the items in a single table
- BB. Delete items individually over a 24 hour period
- CC. Delete the table and create a new table per hour
- DD. Create a new table per hour
24An application is running on a cluster of Amazon EC2 instance. While trying to read objects stored within a single Amazon S3 bucket that are encrypted with server-side encryption with AWS KMS managed keys (SSE-KMS), the application receives the following error:
Service : AWSKMS: Status Code: 400: Code : ThrottlingException
Which combination of steps should be taken to prevent this failure? (Select TWO).- AA. Contact AWS Support to request an AWS KMS rate limit increase.
- BB. Perform error retries with exponential backoff in the application code.
- CC. Contact AWS Support to request a S3 rate limit increase.
- DD. Import a customer master key (CMK) with a larger key size.
- EE. Use more than one customer master key (CMK) to encrypt S3 data
25A 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.)- AA. Use pessimistic concurrency on Amazon DynamoDB.
- BB. Use Amazon CloudFront with an Auto Scaling group.
- CC. Use Amazon CloudFront with an AWS Web Application Firewall
- DD. Store session state data in an Amazon DynamoDB table
- EE. Use an ELB with an Auto Scaling group
26An application deployed on AWS Elastic Beanstalk experiences increased error rates
during deployments of new application versions, resulting in service degradation for users. The Development team believes that this is because of the reduction in capacity during the deployment steps. The team would like to change the deployment policy configuration of the environment to an option that maintains full capacity during deployment while using the existing instances.
Which deployment policy will meet these requirements while using the existing instances?- AA. All at once
- BB. Rolling
- CC. Rolling with additional batch
- DD. Immutable
27A developer is using Amazon DynamoDB to store application data . The developer wants to further improve application performance by reducing response limes for read and write operations.
Which DynamoDB feature should be used to meet these requirement?- AA. Amazon DynamoDB Streams
- BB. Amazon DynamoDB Accelerator
- CC. Amazon DynamoDB global tables
- DD. Amazon DynamoDB transactions
28A developer is creating a serverless web application and maintains different branches of code The developer wants to avoid updating the Amazon API Gateway target endpoint each time a new code push is performed What solution would allow me developer to perform a code push efficiently, without the need to update the API Gateway?
- AA. Associate different AWS Lambda functions to an API Gateway target endpoint
- BB. Create different stages in API Gateway, then associate API Gateway with aws Lambda
- CC. Create aliases and versions In AWS Lambda.
- DD. Tag the AWS Lambda functions with different names
29Amazon S3 has the following structure: S3://BUCKET/FOLDERNAME/FILENAME.zip
Which S3 best practice would optimize performance with thousands of PUT request each
second to a single bucket?- AA. Prefix folder names with user id; for example, s3://BUCKET/2013-
FOLDERNAME/FILENAME.zip - BB. Prefix file names with timestamps; for example, s3://BUCKET/FOLDERNAME/2013-26-
05-15-00-00- FILENAME.zip - CC. Prefix file names with random hex hashes; for example,
s3://BUCKET/FOLDERNAME/23a6- FILENAME.zip - DD. Prefix folder names with random hex hashes; for example, s3://BUCKET/23a6- FOLDERNAME/ FILENAME.zip
- AA. Prefix folder names with user id; for example, s3://BUCKET/2013-
30A software engineer developed an AWS Lambda function in Node.js to do some CPUintensive data processing. With the default settings, the Lambda function takes about 5 minutes to complete.
Which approach should a developer take to increase the speed of completion''- AA. Instead of using Node js. rewrite the Lambda function using Python
- BB. Instead of packaging the libraries in the ZIP file with the function move them to a
Lambda layer and use the layer with the function. - CC. Allocate the maximum available CPU units lo the function
- DD. Increase the available memory to the function.
31A Developer created a dashboard for an application using Amazon API Gateway, Amazon S3, AWS Lambda, and Amazon RDS. The Developer needs an authentication mechanism allowing a user to sign in and view the dashboard. It must be accessible from mobile applications, desktops, and tablets, and must remember user preferences across platforms.
Which AWS service should the Developer use to support this authentication scenario?- AA. AWS KMS
- BB. Amazon Cognito
- CC. AWS Directory Service
- DD. Amazon IAM
32A developer is testing an application that invokes an AWS Lambda function
asynchronously During the testing phase, the Lambda function fails to process after two retries.
How can the developer troubleshoot the failure?- AA. Configure AWS CloudTrail logging to investigate the invocation failures
- BB. Configure Dead Letter Queues by sending events to Amazon SQS for investigation.
- CC. Configure Amazon Simple Workflow Service to process any direct unprocessed events
- DD. Configure AWS Config to process any direct unprocessed events
33A Developer has written a serverless application using multiple AWS services. The
business logic is written as a Lambda function which has dependencies on third-party
libraries. The Lambda function endpoints will be exposed using Amazon API Gateway. The
Lambda function will write the information to Amazon DynamoDB.
The Developer is ready to deploy the application but must have the ability to rollback. Hoy
can this deployment be automated, based on these requirements?- AA. Deploy using Amazon Lambda API operations to create the Lambda function by
providing a deployment package - BB. Use an AWS CloudFormation template and use CloudFormation syntax to define the
Lambda function resource in the template - CC. Use syntax conforming to the Serverless Application Model in the AWS CloudFormation template to define the Lambda function resource.
- DD. Create a bash script which uses AWS CLI to package and deploy the application.
- AA. Deploy using Amazon Lambda API operations to create the Lambda function by
34A developer Is working with a Docker application that needs to be quickly deployed using
AWS without changing the infrastructure or configuring health checks. The application
should be configured so that changes and updates can be made automatically without any
downtime- AA. Use AWS Elastic Beanstalk for application deployment and select an all-at-once update
policy - BB. Use AWS Elastic Beanstalk for application deployment and select a rolling deployment
policy - CC. Deploy the Docker container on an Amazon EC2 instance in an Auto Scaling group and
configure a health check on the EC2 instance - DD. Deploy the Docker container using AWS Lambda and enable Amazon CloudWatch
monitoring
- AA. Use AWS Elastic Beanstalk for application deployment and select an all-at-once update
35An application takes 40 seconds to process instructions received in an Amazon SQS
message. Assuming the SQS queue is configured with the default VisibilityTimeout value, what is the BEST way, upon receiving a message, to ensure that no other instances can retrieve a message that has already been processed or is currently being processed?- AA. Use the ChangeMessageVisibility API to increase the VisibilityTimeout, then use the DeleteMessage API to delete the message.
- BB. Use the DeleteMessage API call to delete the message from the queue, then call DeleteQueue API to remove the queue.
- CC. Use the ChangeMessageVisibility API to decrease the timeout value, then use the DeleteMessage API to delete the message.
- DD. Use the DeleteMessageVisibility API to cancel the VisibilityTimeout, then use the DeleteMessage API to delete the message.
36A developer has designed a customer, facing application that is running on an Amazon
EC2 instance. The application logs every request made to it. The application usually runs seamlessly, but a spike in traffic generates several logs that cause the disk to fill up and eventually run out of memory Company policy requires old to be centralized for analysis.
Which long-term solution should the developer employ to prevent the issue from reoccurring?- AA. Install the Amazon CloudWatch agent on the instance to send the logs to CloudWatch. Delete the logs from the instance once they are sent to CloudWatch.
- BB. Enable AWS Auto Scaling on Amazon Elastic Block Store (Amazon EBS) to automatically add volumes to the instance when it reaches a specified threshold.
- CC. Enable AWS Auto Scaling on Amazon Elastic Block Store (Amazon EBS) a outomatically add volume to the instance when it reaches a specified threshold.
- DD. Create an Amazon EventBridge (Amazon CloudWatch Events) rule to pull the logs from the instance. Configure the rule to delete the logs they have been pulled.
37A Developer is publishing critical log data to a log group in Amazon CloudWatch Lops,
which was created 2 months ago. The Developer must encrypt the log data using an AWS KMS customer master key (CMK) so future data can be encrypted to comply with me company's security policy How can the Developer meet this requirement?- AA. Use the Cloud Watch Logs console and enable the encrypt feature on the log group.
- BB. Use the AWS CLI create-log-group command and specify the key Amazon Resource Name (ARN).
- CC. Use the KMs console and associate the CMK with the log group.
- DD. Use the AWS CLI associate-Kms-key command and specify the key Amazon Resource Name (ARN).
38A Developer accesses AWS CodeCommit over SSH. The SSH keys configured to access
AWS CodeCommit are tied to a user with the following permissions:
The Developer needs to create/delete branches. Which specific IAM permissions need to be added, based on the principle of least privilege?
- AA. “codecommit:CreateBranch”“codecommit:DeleteBranch”
- BB. “codecommit:Put*”
- CC. “codecommit:Update*”
- DD. “codecommit:*”
39A company needs to encrypt data at rest, but it wants to leverage an AWS managed
service using its own master key.
Which of the following AWS service can be used to meet these requirements?- AA. SSE with Amazon S3.
- BB. SSE with AWS KMS.
- CC. Client-side encryption.
- DD. AWS IAM roles and policies.
40An application contains two components one component to handle HI IP requests, and another component to handle background processing tasks Bach component must scale independently The developer wants to deploy this application using AWS Elastic Beanstalk.
How should this application be deployed, based on these requirements?- AA. Deploy the application in a single Elastic Beanstalk environment.
- BB. Deploy each component in a separate Elastic Beanstalk environment.
- CC. Use multiple Elastic Beanstalk environments for the HTTP component but one environment for the background task component.
- DD. Use multiple Elastic Beanstalk environments for the background task component but one environment tor the HTTP component.
41A Developer has been asked to create an AWS Lambda function that is triggered any time updates are made to items in an Amazon DynamoDB table. The function has been created, and appropriate permissions have been added to the Lambda execution role. Amazon DynamoDB streams have been enabled for the table, but the function is still not being triggered.
Which option would enable DynamoDB table updates to trigger the Lambda function?- AA. Change the StreamViewType parameter value to NEW_AND_OLD_IMAGES for the DynamoDB table.
- BB. Configure event source mapping for the Lambda function.
- CC. Map an Amazon SNS topic to the DynamoDB streams.
- DD. increase the maximum execution time (timeout) setting of the Lambda function.
42In DynamoDB, what type of HTTP response codes indicate that a problem was found with
the client request sent to the service?- AA. 5xx HTTP response code.
- BB. 200 HTTP response code.
- CC. 306 HTTP response code.
- DD. 4xx HTTP response code.
43A Developer wants access to make the log data of an application running on an EC2
instance available to systems administrators.
Which of the following enables monitoring of this metric in Amazon CloudWatch?- AA. Retrieve the log data from CloudWatch using the GetMetricData API call.
- BB. Retrieve the log data from AWS CloudTrail using the LookupEvents API call.
- CC. Launch a new EC2 instance, configure Amazon CloudWatch Events, and then install the application.
- DD. Install the Amazon CloudWatch Logs agent on the EC2 instance that the application is running on.
44Which DynamoDB limits can be raised by contacting AWS support?
Choose 2 answers.- AA. The number of hash keys per account.
- BB. The maximum storage used per account.
- CC. The number of tables per account.
- DD. The number of local secondary indexes per account.
- EE. The number of provisioned throughput units per account.
45A team of Developers must migrate an application running inside an AWS Elastic
Beanstalk environment from a Classic Load Balancer to an Application Load Balancer.
Which steps should be taken to accomplish the task using the AWS Management
Console?- AA.
1. Update the application code in the existing deployment.
2. Select a new load balancer type before running the deployment.
3. Deploy the new version of the application code to the environment. - BB.
1. Create a new environment with the same configurations except for the load balancer
type.
2. Deploy the same application version as used in the original environment.
3. Run the swap-environment-cnames action. - CC.
1. Clone the existing environment, changing the associated load balancer type.
2. Deploy the same application version as used in the original environment.
3. Run the swap-environment-cnames action. - DD.
1. Edit the environment definitions in the existing deployment.
2. Change the associated load balancer type according to the requirements.
3. Rebuild the environment with the new load balancer type.
- AA.
46A developer needs to create an application that supports Security Assertion Markup
Language (SAML) and Facebook authentication It must also allow access to AWS
services, such as Amazon DynamoDB.
Which AWS service or feature will meet these requirements with the LEAST amount of
additional coding?- AA. AWSAppSync.
- BB. Amazon Cognito identity pools.
- CC. Amazon Cognito user pools.
- DD. Amazon Lambda@Edge.
47A company has a web application that uses an Amazon Cognito user pool for
authentication. The company wants to create a login page with the company logo. What
should a developer do to meet these requirements?- AA. Create a hosted user interface in Amazon Cognito and customize it with the company logo.
- BB. Create a login page with the company logo and upload it to Amazon Cognito.
- CC. Create a login page in Amazon API Gateway with the logo and save the link in Amazon Cognito.
- DD. Upload the logo to the Amazon Cognito app settings and point to the logo on a custom login page.
48A nightly batch job loads 1 million new records into a DynamoDB table. The records are
only needed for one hour, and the table needs to be empty by the next night’s batch job.
Which is the MOST efficient and cost-effective method to provide an empty table?- AA. Use DeleteItem using a ConditionExpression.
- BB. Use BatchWriteItem to empty all of the rows.
- CC. With a recursive function that scans and calls out DeleteItem.
- DD. Create and then delete the table after the task has completed.
Answer:
49A company is using Amazon RDS MySQL instances for its application database tier and
Apache Tomcat servers for its web tier. Most of the database queries from web
applications are repeated read requests.
Use of which AWS service would increase in performance by adding in-memory store for repeated read queries?- AA. Amazon RDS Multi-AZ.
- BB. Amazon SQS.
- CC. Amazon ElastiCache.
- DD. Amazon RDS read replica.
50A company needs to distribute firmware updates to its customers around the world.
Which service will allow easy and secure control of the access to the downloads at the
lowest cost?- AA. Use Amazon CloudFront with signed URLs for Amazon S3.
- BB. Create a dedicated Amazon CloudFront Distribution for each customer.
- CC. Use Amazon CloudFront with AWS Lambda@Edge.
- DD. Use Amazon API Gateway and AWS Lambda to control access to an S3 bucket.
51A developer is building a WebSocket API using Amazon API Gateway. The payload sent to this API is JSON that includes an action key This key can have three different values
create, update, and remove The developer must integrate with different routes based on the value of the action key of the incoming JSON payload.
How can the developer accomplish this task with the LEAST amount of configuration?- AA. Deploy the WebSocket API to three stages for the respective routes create, update, and remove.
- BB. Create a new route key and set the name as action.
- CC. Set the value of the route selection expression to action.
- DD. Set the value of the route selection expression to $request.body action.
52A Developer is receiving HTTP 400: ThrottlingException errors intermittently when calling the Amazon CloudWatch API. When a call fails, no data is retrieved.
What best practice should first be applied to address this issue?- AA. Contact AWS Support for a limit increase.
- BB. Use the AWS CLI to get the metrics.
- CC. Analyze the applications and remove the API call.
- DD. Retry the call with exponential backoff.
53A development team wants to immediately build and deploy an application whenever there is a change to the source code. Which approaches could be used to trigger the
deployment? (Select TWO.)- AA. Store the source code in an Amazon S3 bucket Configure AWS CodePipeline to start whenever a file in the bucket changes.
- BB. Store the source code in an encrypted Amazon EBS volume Configure AWS CodePipeline to start whenever a file in the volume changes.
- CC. Store the source code in an AWS CodeCommit repository Configure AWS CodePipeline to start whenever a change is committed to the repository.
- DD. Store the source code in an Amazon S3 bucket Configure AWS CodePipeline to start every 15 minutes.
- EE. Store the source code in an Amazon EC2 instance's ephemeral storage. Configure the instance to start AWS CodePipeline whenever there are changes to the source code.
54A Developer wants to encrypt new objects that are being uploaded to an Amazon S3
bucket by an application. There must be an audit trail of who has used the key during this process. There should be no change to the performance of the application.
Which type of encryption meets these requirements?- AA. Server-side encryption using S3-managed keys.
- BB. Server-side encryption with AWS KMS-managed keys.
- CC. Client-side encryption with a client-side symmetric master key.
- DD. Client-side encryption with AWS KMS-managed keys.
55A Developer is trying to make API calls using SDK. The IAM user credentials used by the application require multi-factor authentication for all API calls.
Which method the Developer use to access the multi-factor authentication protected API?- AA. GetFederationToken.
- BB. GetCallerIdentity.
- CC. GetSessionToken.
- DD. DecodeAutherizationMessage.
56A company is adding stored value for gift card) capability to its highly popular casual
gaming website. Users need to be able to trade this value for other users' items on the
platform. This would require both users' records be updated as a single transaction, or both users' records to be completely rolled back.
Which AWS database options can provide the transactional capability required for this new feature? (Select TWO ).- AA. Amazon DynamoDB with operations made with the ConsistentRead parameter set to true.
- BB. Amazon ElastiCache for Memcached with operations made within a transaction block.
- CC. Amazon Aurora MySQL with operations made within a transaction block.
- DD. Amazon DynamoDB with reads and writes made using Transact" operations.
- EE. Amazon Redshift with operations made within a transaction block.
57A Developer has created a Lambda function and is finding that the function is taking longer to complete than expected. After some debugging, the Developer has discovered that increasing compute capacity would improve performance.
How can the Developer increase the Lambda compute resources?- AA. Run on a larger instance size with more compute capacity.
- BB. Increase the maximum execution time.
- CC. Specify a larger compute capacity when calling the Lambda function.
- DD. Increase the allocated memory for the Lambda function.
58A company recently experienced some unexpected downtime. After investigating, the
company determines that a developer mistakenly terminated several production Amazon EC2 instances. What should the company do to BEST protect against accidental terminations in the future.- AA. Enable EC2 termination protection on all production instances unless approval has been given through AWS Resource Access Manager.
- BB. Modify the developer group’s permissions policy to deny them access to delete production instances unless approved has been given through AWS Resource Access Manager.
- CC. Modify the developer group’s permission policy to require multi-factor authentication (MFA) only production instances are being delete Enable EC2 termination protection on production instances.
- DD. Enable EC2 termination protection on production instances. Deny the developer group’s permissions policy access to terminate instance. Create a new role that developer can assume when termination is necessary.
59A company uses Amazon DynamoDB for managing and tracking orders. The DynamoDB table is partitioned based on the order date. The company receives a huge increase in orders during a sales event, causing DynamoDB writes to throttle, and the consumed throughput is far below the provisioned throughput.
According to AWS best practices, how can this issue be resolved with MINIMAL costs?- AA. Create a new DynamoDB table for every order date.
- BB. Increase the read and write capacity units of the DynamoDB table.
- CC. Add a random number suffix to the partition key values.
- DD. Add a global secondary index to the DynamoDB table.
60The Developer for a retail company must integrate a fraud detection solution into the order processing solution. The fraud detection solution takes between ten and thirty minutes to verify an order. At peak, the web site can receive one hundred orders per minute. What is the most scalable method to add the fraud detection solution to the order processing pipeline?
- AA. Add all new orders to an Amazon SQS queue. Configure a fleet of 10 EC2 instances spanning multiple AZs with the fraud detection solution installed on them to pull orders from this queue. Update the order with a pass or fails status.
- BB. Add all new orders to an SQS queue. Configure an Auto Scaling group that uses the queue depth metric as its unit of scale to launch a dynamically-sized fleet of EC2 instances
spanning multiple AZs with the fraud detection solution installed on them to pull orders from this queue. Update the order with a pass or fails status. - CC. Add all new orders to an Amazon Kinesis Stream. Subscribe a Lambda function to automatically read batches of records from the Kinesis Stream. The Lambda function includes the fraud detection software and will update the order with a pass or fail status.
- DD. Write all new orders to Amazon DynamoDB. Configure DynamoDB Streams to include all new orders. Subscribe a Lambda function to automatically read batches of records from
the Kinesis Stream. The Lambda function includes the fraud detection software and will update the order with a pass or fail status.
61A developer is working on an AWS Lambda function that accesses Amazon DynamoDB
The Lambda function must retrieve an item and update some of its attributes. or create the item if it does not exist The Lambda function has access to the primary key.
Which IAM permissions should the developer request for the Lambda function to achieve this functionality?- AA. dynaracdb:DeleteItem
dynamodb:GetItem
dynamcdb:Putltem - BB. dynamodb:Updateltem
dynamcdb:Getltem
dynamodb:DescribeTable - CC. dynamcdb:GetRecords
dynamcdb:Putltem
dynamodb:updateTable - DD. dynamodb:Updateltem
dynamodb:Getltem
dynamodb:Putltem
- AA. dynaracdb:DeleteItem
62A Developer must repeatedly and consistently deploy a serverless RESTful API on AWS.
Which techniques will work? (Choose two.)- AA. Define a Swagger file. Use AWS Elastic Beanstalk to deploy the Swagger file.
- BB. Define a Swagger file. Use AWS CodeDeploy to deploy the Swagger file.
- CC. Deploy a SAM template with an inline Swagger definition.
- DD. Define a Swagger file. Deploy a SAM template that references the Swagger file.
- EE. Define an inline Swagger definition in a Lambda function. Invoke the Lambda function.
63An application writes items to an Amazon DynamoDB table. As the application scales to thousands of instances, calls to the DynamoDB API generate occasional
ThrottlingException errors. The application is coded in a language incompatible with the AWS SDK.
How should the error be handled?- AA. Add exponential backoff to the application logic.
- BB. Use Amazon SQS as an API message bus.
- CC. Pass API calls through Amazon API Gateway.
- DD. Send the items to DynamoDB through Amazon Kinesis Data Firehose.
64A developer is building an application using an Amazon API Gateway REST API backed by an AWS Lambda function that interacts with an Amazon DynamoDB table During testing, the developer observes high latency when making requests to the API
How can the developer evaluate the end-to-end latency and identify performance
bottlenecks?- AA. Enable AWS CloudTrail logging and use the logs to map each latency and bottleneck.
- BB. Enable and configure AWS X-Ray tracing on API Gateway and the Lambda function Use X-Ray to trace and analyze user requests.
- CC. Enable Amazon CloudWatch Logs for the Lambda function Enable execution logs for API Gateway to view and analyze user request logs.
- DD. Enable VPC Flow Logs to capture and analyze network traffic within the VPC.
65Which of the following statements about SQS is true?
- AA. Messages will be delivered exactly once and messages will be delivered in First in, First out order.
- BB. Messages will be delivered exactly once and message delivery order is indeterminate.
- CC. Messages will be delivered one or more times and messages will be delivered in First in, First out order.
- DD. Messages will be delivered one or more times and message delivery order is indeterminate.
Information
- Description
- Quiz on DVA-C01 AWS Certified Developer (01), created by Rômulo D on 18/04/2021.
- Author
- Rômulo D
- Language
- Português
- Views
- 4
- Tags
- Rating
- No ratings yet Rate this quiz