GCP - DAY 2
![]() |
![]() |
![]() |
Título del Test:![]() GCP - DAY 2 Descripción: GCP - DAY 2 |




Comentarios |
---|
NO HAY REGISTROS |
You have a mission-critical application that is accessed globally. You must make sure that your application is able to serve traffic reliably. What is the best way to check if your application is ready to serve traffic?. Ask your testing team to run the system tests every day. Write a cron job to ping your application's home page every minute. Implement a health-check endpoint for each service. Set up monitoring dashboards that your global support team can look at 24 x 7. You need to design a social application to reach a much broader audience than before. You want to achieve scalability, reliability, and security. Select two best practices that you can implement to build scalable, more secure, and highly available applications?. Develop a highly secure user management system that you can rely on. Avoid caching to minimize the number of services that your application depends on. Manage your application’s code and environment by using a code repository and a dependency management system. Design for loose coupling between application components. Which of the following statements is true?. When rolling out builds to the production environment, consider performing canary testing to perform integration testing before deploying it to production. For transient network errors, applications should implement retry logic with exponential backoff and fail gracefully if the errors persist. You can review data compliance and sovereignty requirements after you see the source of user traffic at launch. It is better to re-architect legacy applications in one big release so that engineering teams can focus on new applications. Identify three key aspects of a sound architecture for a continuous integration and delivery (CI / CD) system. (Select all 3 correct answers). Developers can also build container images on their laptops and deploy to the development environment. Docker container images are stored in Cloud Storage for easy versioning and retrieval. When a developer commits code into the code repository, a continuous integration tool such as Jenkins builds a container image for the application. Builds should be tested in the development environment and canary deployments should be used before fully deploying the build to the production environment. Canary deployments can help catch unexpected issues before they affect a large number of users in production. Identify two key aspects of this application's architecture.(Select all 2 correct answers). The application will require longer development and QAcycles as the system grows in features and complexity. The application has a microservices-based architecture because the code is divided into a UI layer, business logic layer, and data access layer. The layers of the application are loosely coupled. The layers of this application can be scaled independently. The application is monolithic because all layers need to be deployed as a single unit. Which of the following is considered a best practice when developing cloud-native applications?. Implement API gateways to make backend functionality available to consumer applications. Using the Worker pattern, develop workers that share state to reduce data storage costs. Store and manage log files alongside the application for quick troubleshooting in case of errors. Store external dependencies such as JAR files or external packages in your code repository to avoid confusion. What tools does the Google Cloud SDK include?. bq, gsutil, Cloud Client Libraries. bq, gsutil, gcloud. gRPC, gsutil, Cloud Client Libraries. gcloud, gsutil, Cloud Client Libraries. Which of the following statements about Google Cloud Client Libraries are accurate? (Select all 3 correct answers). Cloud Client Libraries are the latest and recommended approach to making requests to the server. Cloud Client Libraries are helpful because they support a language's natural conventions and styles. Cloud Client Libraries handle low-level communication, retry logic, and authentication. Cloud Client Libraries are available in all programming languages. Which of the following statements about Cloud Code are true? (Select the 2 correct answers). Cloud Code's YAML authoring assistance provides autocomplete and inline documentation for Docker files. Cloud Code is a new integrated development environment for creating cloud-native applications. Cloud Code integrates with Secret Manager to securely store sensitive data. Cloud Code works with Cloud Run and Kubernetes applications. Your code throws errors because the actual response from a Google Cloud API is not what you expect. You want to quickly find the response values for a set of test parameter values. How can you execute the API with minimal effort to determine the response data?. Use the API Explorer to run the equivalent gcloud command. Use the API Explorer to execute a snippet of your code with test parameter values. Invoke the unit test for your code with test parameter values. Use the API Explorer to invoke the API with test parameter values. A restaurant in your neighborhood wants to put up a website that displays static information including a menu, restaurant hours, and location on a map. You want to help set up the website. What is the best solution for serving the website’s content on Google Cloud?. Serve the website's content from a web server running on a Compute Engine instance. Serve the website's content from an application server running on a Compute Engine instance. Serve the website's content from Cloud Bigtable. Serve the website's content from a Cloud Storage bucket. You have a very large database that you are using for complex queries in a suite of business intelligence applications. You want to move the data to a fully-managed solution. Which database option is ideal for such use cases?. BigQuery. Cloud Datastore. Firestore. Cloud Bigtable. You are building a banking application that is expected to have a very large number of users across the world. When users make a deposit, they want to see the result of this deposit reflected immediately when they view their balance. What data storage option is ideal for storing account balance information for users?. Cloud Spanner is ideal because it supports strongly consistency reads in addition to horizontal scalability, low latency, and high throughput. Cloud Bigtable is ideal because it supports low-latency read/write access. Cloud Firestore for Firebase is ideal because it enables you to develop a mobile app later. Cloud SQL is ideal because it is a relational database that supports transactions. What best practices can you apply when creating a Cloud Datastore entity with a numeric key? Choose all that are correct (3 correct answers) . Avoid built-in indexes because they create hotspots. Always create keys with string IDs. Let Cloud Datastore automatically assign the numeric ID for the key. Avoid sequential numbering of keys. When creating keys manually, get a block of IDs using the allocateIds() method. Which one of the following statements about Cloud Datastore is accurate?. Cloud Datastore supports complex joins with multiple inequality filters. Cloud Datastore supports referential integrity. Cloud Datastore supports analytics queries. Cloud Datastore supports atomic transactions. You receive the following error code from a Cloud Datastore request: INTERNAL. What action should you take?. Retry only if the problem is fixed. Retry only once. Retry using exponential backoff. Retry the request until it succeeds. Which of the following statements about Cloud Datastore entities are accurate? (Select all 2 correct answers). Entities of the same kind must have the same properties. Entities can specify foreign key relationships. Entities of the same kind can have different properties. Entity keys can have manually generated numeric ids. Your expense report application allows users to submit multiple expenses in a single report. You want to add each expense as a separate entity in Cloud Datastore. How can you reduce latency when adding expenses to Cloud Datastore?. Avoid built-in indexes for fast inserts. Use composite indexes to store and index multiple entities. Use a batch operation to add multiple entities in one request. Use automatically generated keys with numeric IDs. Which of the following bucket names are valid? (Select all 2 correct answers). vanilla-bucket. MyFavoriteBucket. surprise!. bucket_for_my_web_app. What are the advantages of hosting static websites on Google Cloud Storage? (Select all 2 correct answers). You get automatic scaling with no additional effort. You don't need to set up and run a Compute Engine instance. Cloud Storage automatically authenticates users. Cloud Storage supports creation of signed URLs. Review the following gsutil command. What is the result when the command is executed? gsutil mb -c regional -l us-central1 gs://parent-bucket. The command creates a bucket called "regional" in the "us-central1" location under an existing bucket called "parent-bucket". The command modifies a bucket called "parent-bucket" or creates the bucket if it does not already exist. The command modifies a bucket called "parent-bucket" and changes properties to "us-central1" location and "regional" storage class. The command creates a bucket called "parent-bucket" in the "us-central1" location with "regional" storage class. Before transferring data to you, a third-party breaks up each large data file into 15 small chunks because of network bandwidth issues. You want to use Google BigQuery to directly query Cloud Storage data. What is the best way to combine the chunks into a single file?. Ask third-party to use truncated exponential backoff to failed upload of a large file. Use strongly consistent reads and writes to ensure accuracy of file transfer. Use the "gsutil compose" command to build a composite object from smaller chunks. Use the "gsutil -m" command to perform a multi-threaded/multi-processing to transfer chunks as a single unit. Review the following gsutil command. What is the result when the command is executed? gsutil mb -c regional -l us-central1 gs://parent-bucket. The command creates a bucket called "regional" in the "us-central1" location under an existing bucket called "parent-bucket". The command creates a bucket called "parent-bucket" in the "us-central1" location with "regional" storage class. The command modifies a bucket called "parent-bucket" or creates it if it does not already exist. The command modifies a bucket called "parent-bucket" and changes properties to "us-central1" location and "regional" storage class. Identify two key aspects of this build system's architecture. The build system stores build artifacts in Cloud Storage. It is best to set up gsutil scripts to transition objects to Nearline and Coldline storage classes. As the build artifacts get older, they move through various storage classes to limit their retention cost. Jenkins can also be used to store build artifacts long term. You are tasked with designing a disaster recovery system in your organization. You need to make sure that all applications recover and become available as quickly as possible. What storage class is ideal for storing backups of your data if the data is to be stored for two years and is unlikely to be accessed?. Archive. Nearline. Coldline. Standard. |