AWS Certified Developer Associate QUIZ Set 2 Author: CloudVikas Published Date: 1 March 2020 Welcome to AWS Certified Developer - Associate QUIZ Set 2. This QUIZ set will improve your knowledge check.Best Of Luck. 1. ######QUESTION#########You are a developer working on AWS Lambda functions that are invoked over HTTPS. The functions are invoked via REST API's using Amazon API Gateway for methods such as GET and PUT. When a GET request is invoked by consumers all fields returned by your Lambda functions are seen. Your supervisor asks you to format the data response. What can you do with API Gateway to satisfy the request?Use Mapping TemplatesUse a stage variable2. ######QUESTION#########An application is hosted by a 3rd party and exposed at yourapp.3rdparty.com. You would like to have your users access your application using www.mydomain.com, which you own and manage under Route 53. What record should you create?Create a PTR recordCreate a CNAME record3. ######QUESTION#########Which of the following option is correct?"Use AWS CloudWatch Events" - CloudWatch is good for monitoring and viewing logs"Enable CodeBuild timeouts" : By setting the timeout configuration, the build process will automatically terminate post the expiry of configured timeout. The default is 60 minutes.all of them"Use AWS Lambda" - Lambda does not have an effect on the code being complied"Use VPC Flow Logs" - VPC Flow Logs is a feature that enables you to capture information about the IP traffic going to and from network interfaces in your VPC but not for code compiling configuration4. ######QUESTION#########In project you have some code located in an S3 bucket that you want to reference in your CloudFormation template. Which section of the template can you use to define this?InputsFilesTransformsResources5. ######QUESTION#########Part of your CloudFormation deployment fails due to a mis-configuration, by default what will happen?CloudFormation will rollback only the failed componentsCloudFormation will ask you if you want to continue with the deploymentCloudFormation will rollback the entire stackFailed components will remain available for debugging purposes6. ######QUESTION#########A developer in your company has configured an AWS CodeBuild build. The build fails and the developer needs to quickly troubleshoot the issue to see which commands or settings located in the BuildSpec file are causing an issue. Which approach will help them accomplish this?Freeze the CodeBuild during its next executionRun AWS CodeBuild locally7. ######QUESTION#########You are creating a Cloud Formation template to deploy your CMS application running on an EC2 instance within your AWS account. Because you would like to deploy the application across multiple regions you have decided to create a Map of all the possible values for the base AMI. How should you invoke the !FindInMap function?!FindInMap [ MapName, TopLevelKey ]!FindInMap [ MapName, TopLevelKey, SecondLevelKey ]8. ######QUESTION#########When deploying application code to Lambda, the AppSpec file can be written in which language? (Choose 2) XML Python JSON YAML9. ######QUESTION#########In deployment process,You are deploying an application to a number of EC2 instances using CodeDeploy. What is the name of the file used to specify source files and lifecycle hooks?appspec.ymlbuildspec.ymlappspec.jsonbuildspec.json10. ######QUESTION#########Which AWS service can be used automatically install your application code onto EC2, on-premises systems and Lambda?CodeBuildCodeDeployX-RayCodeCommit11. ######QUESTION#########Which AWS service can be used to compile source code, run tests and package code?CodeDeployCodePipelineCodeCommitCodeBuild12. ######QUESTION#########Which of the following option is correct?"On-demand Instances" - You can use this but will need to manually start/stop the instances which is not something you want to doall of them"Classic Instances" - If you created your AWS account after 2013-12-04, it does not support EC2-Classic"Scheduled Instances" : Scheduled instances allow you to reserve capacity on a recurring basis with a daily, weekly, or monthly schedule over the course of a one-year term."Spot Instances" - Its recommended for applications that have flexible start and end times13. ######QUESTION#########Which of the following approaches allows you to re-use pieces of CloudFormation code in multiple templates, for common use cases like provisioning a load balancer or web server?Copy and paste the code into the template each time you need to use itUse a CloudFormation nested stackShare the code using an EBS volumeStore the code you want to re-use in an AMI and reference the AMI from within your CloudFormation template14. ######QUESTION#########You have written an application that uploads objects onto an S3 bucket. Every single multi-part upload request is at least 1TB in size. You expect the multi-part request to increase in size as operations begin to grow. What is the maximum file size for individual objects stored on an S3 bucket?5 TB1TB15. ######QUESTION#########Your company cloudvikas.com has moved to AWS so it can use "Infrastructure as Code". You would like to apply version control to your infrastructure, so that you can roll back infrastructure to a previous stable version if needed. You would also like to quickly deploy testing and staging environments in multiple regions. What services should you use to achieve this?Elastic Beanstalk and CodeCommit.CloudWatch and CodeCommit.DynamoDB and CloudFront.EC2 and RDS.OpsWorks and CodeCommit.CloudFormation and CodeCommit.16. ######QUESTION#########Which of the following option is correct?"CloudWatch log expiration policies" : By default, logs are kept indefinitely and never expire. You can adjust the retention policy for each log group, keeping the indefinite retention, or choosing a retention period between one day to ten years.all of them"AWS Lambda with a CloudWatch Event" - You can create a scheduled task that calls lambda and then programmatically deletes the logs but why go through that trouble when an easier option is available"CloudWatch Log Streams" - It will not meet compliance because it will still be stored in CloudWatch"CloudWatch S3 exporter" - There is no tool named this but even if you transferred over to S3 it may not meet compliance because you will still have a copy of the logs somewhere else17. ######QUESTION#########In the CodeDeploy AppSpec file, what are hooks used for?To reference AWS resources that will be used during the deploymentTo specify files that you want to copy during the deploymentHooks are reserved for future useTo specify code, scripts or functions that you want to run at set points in the deployment lifecycle18. ######QUESTION#########Which AWS service can be used to fully automate your entire release process?CodePipelineCodeDeployCodeCommitCodeBuild19. ######QUESTION#########You are a developer working on an application that uses encryption heavily. You also handle the deployment of the application via AWS Elastic Beanstalk and during load testing of the application you find that the KMS requests are exceeding the per second limit. Which of the following alternatives will help you resolve this issue?Use the Encryption SDKKMS Encrypt API Call20. ######QUESTION#########How can you prevent CloudFormation from deleting your entire stack on failure? Use the --enable-termination-protection flag with the AWS CLI Set the 'Rollback on failure' radio button to No in the CloudFormation console Use the --disable-rollback flag with the AWS CLI Set Termination Protection to Enabled in the CloudFormation console21. ######QUESTION#########You're a developer working on a big scale order processing application. After completing features, you commit your code to AWS CodeCommit and begin building the project with AWS CodeBuild before it gets deployed to the server. The build is taking too long and the error points to an issue resolving dependencies from a third-party. You would like to prevent a build running this long in the future for the same reasons. Which of the following will help?Enable CodeBuild timeoutsUse AWS Lambda22. ######QUESTION#########A company is developing a highly available web application using stateless web servers. Currently, the application is hosted on one EC2 instance that is installed along with Microsoft SQL Server. The company's Developer is redesigning the architecture to allow for scalability. One of those changes will require the replacement of the relational database to a NoSQL database technology. Which of the following services should you use given these requirements?RedshiftDynamoDB23. ######QUESTION#########You have deployed a Java application to an EC2 instance where it uses the X-Ray SDK. When testing from your personal computer, the application sends data to X-Ray but when the application runs from within EC2, the application fails to send data to X-Ray. Which of the following does NOT help you with debugging the issue?EC2 Instance RoleX-Ray sampling24. ######QUESTION#########Which of the following option is correct?"Redshift" - Redshift is a petabyte scale warehouse service and you have to manually change settings for scaling"RDS" - Its use for relational storage and not NoSQL"DynamoDB" : Amazon DynamoDB is a no relational database that delivers reliable performance at any scale. It is a fully managed, multi-region, multi-master database that provides consistent single-digit millisecond latency."ElastiCache" - Good for in-memory caching and helps significantly improve latencyall of them25. ######QUESTION#########Your business requires an order-processing application that will process orders during weekdays between the hours of 8 am to 5 pm. No operations will take place evenings or weekends and for keeping costs low, no servers must be running after hours. Which instance type will meet these requirements?Scheduled InstancesSpot Instances26. ######QUESTION#########CloudFormation is important topic in AWS. Which two things can you define using the Transforms section of the CloudFormation template? To specify the use of the Serverless Application Model for Lambda deployments To transform API responses to a supported format To convert between YAML and JSON format templates To re-use code located in S327. ######QUESTION#########Which of the following practices allows multiple developers working on the same application to merge code changes frequently, without impacting each other and enables the identification of bugs early on in the release process?Continuous IntegrationContinuous DeploymentContinuous DevelopmentContinuous Delivery28. ######QUESTION#########In your project , client has given requirement related to cloudformation. You want to use the output of your CloudFormation stack as input to another CloudFormation stack. Which section of the CloudFormation template would you use to help you configure this?OutputsTransformsExportsResources29. ######QUESTION#########When deploying application code to EC2, the AppSpec file can be written in which language?XMLJSONYAMLJSON or YAML30. ######QUESTION#########Which of the following option is correct?"X-Ray": X-Ray is used to provide tracing data and debug your applications. It also be used cross accountsall of them"CloudWatch Events": This helps to trigger notifications based on changes happening in AWS services"VPC Flow Logs": This is used to analyze network traces and helps with network security"CloudTrail": This is used to trace API calls made within your AWS accounts on AWS resources31. ######QUESTION#########An AWS developer in a MNC is developing a highly available web application using DynamoDB for its data access. What is the maximum number of attributes that can be combined in a primary key when the developer create the database?34232. ######QUESTION#########You want to receive an email whenever a user pushes code to your CodeCommit repository, how can you configure this?Configure a CloudWatch Events rule to send a message to SES which will trigger an email to be sent whenever a user pushes code to the repositoryCreate a new SNS topic and configure it to poll for CodeCommit events. Ask all your users subscribe to the topic to receive notificationsConfigure a CloudWatch Events rule to send a message to SQS which will trigger an email to be sent whenever a user pushes code to the repositoryConfigure Notifications in the console, this will create a CloudWatch Events rule to send a notification to an SNS topic which will trigger an email to be sent to the user33. ######QUESTION#########You are a Developer who has been asked to do some consulting for a European company that produces smartphone cases with embedded country flags. The company has a new web application that needs to be built and would like users in Europe to be routed to CloudFront resources near them. For users in any other country, CloudFront resources will need to route users to resources near them. Which routing policy meets this requirement?GeoproximityFailover34. ######QUESTION#########You have launched EC2 instances hosting the same application version. Instances are launched based on traffic using an auto scaling group. Each EC2 instance is assigned an instance-id and plan on capturing this data within the application. How can this be accomplished?Use EC2 meta data serviceAttach an IAM role and allow the ec2 describes-instances permission35. ######QUESTION#########You are a developer at a company that creates serverless functions in AWS Lambda. Functions are invoked by clients via AWS API Gateway, which anyone can access. Your team lead would like to control access using a 3rd party authorized mechanism. Which authorizer should you use?Lambda AuthorizerIAM permissions with sigv436. ######QUESTION#########You are deploying a number of EC2 and RDS instances using CloudFormation in your project. Which section of the CloudFormation template would you use to define these?TransformsResourcesInstancesOutputs37. ######QUESTION#########A company recently migrated its internal resources to a cloud serverless infrastructure. The infrastructure is composed of AWS Lambda functions, API Gateway and EC2 instances where applications utilize API Gateway. In addition, the company enabled CloudWatch Logs for API Gateway but CloudWatch logs are not being written. What is the likely cause of this issue?Check the Service IAM permissionsCheck the CloudWatch Logs Policy38. ######QUESTION#########You are using CloudFormation to create a new S3 bucket, which of the following sections would you use to define the properties of your bucket?OutputsParametersConditionsResources39. ######QUESTION#########Which AWS service can be used to centrally store and version control your application source code, binaries and libraries?CodeCommitCodeBuildElasticFileSystemCodePipeline40. ######QUESTION#########Your departments have distinct AWS accounts and would like to debug and trace data across accounts and visualize it in a centralized account. What would you use to achieve that?CloudWatch EventsX-Ray1 out of Email Author: CloudVikas