CLOUD ARCHITECT 01 EXAM
WITH COMPLETE SOLUTIONS
Which product should you use?
[ ] A) Cloud Datastore
[ ] B) Cloud Storage
[ ] C) Cloud Bigtable
[ ] D) BigQuery - Answer-Correct answer C
Feedback:
A) is not correct because Cloud Datastore is not the most performant product for
frequent writes or timestamp-based queries.
B) is not correct because Cloud Storage is designed for object storage not for this type
of data ingestion and collection.
C) is correct because Cloud Bigtable is the most performant storage option to work with
IoT and time series data.
D) is not correct because although it can store the data, BigQuery is very slow at
changing data.
Reference:
Cloud Bigtable Schema Design for Time Series Data:
https://cloud.google.com/bigtable/docs/schema-design-time-series
You set up an autoscaling instance group to serve web traffic for an upcoming launch.
After configuring the instance group as a backend service to an HTTP(S) load balancer,
you notice that virtual machine (VM) instances are being terminated and re-launched
every minute. The instances do not have a public IP address. You have verified the
appropriate web response is coming from each instance using the curl command. You
want to ensure the backend is configured correctly.
What should you do?
[ ] A) Ensure that a firewall rule exists to allow source traffic on HTTP/HTTPS to reach
the load balancer.
[ ] B) Create a tag on each instance with the name of the load balancer. Configure a
firewall rule with the name of the load balancer as the source and the instance tag as
the destination.
,[ ] C) Ensure that a firewall rule exists to allow load balancer health checks to reach the
instances in the instance group.
[ ] D) A - Answer-Correct Answer C
Feedback:
A) Firewall controls access at instance level, not load balancer. Must allow load
balancer traffic to connect backend instance allowing health check
B) At this moment it is not possible to set firewall rules over the GCE Load Balancers.
You need to create firewall rules that at subnet or instances level allowing specific
health check IP ranges (See Answer A above), not the LB tags, to connect to all your
load balanced instances.
C) (correct answer) HTTP health check probes are sent from the IP ranges depending
on LB types used. These are IP address ranges that the load balancer uses to connect
to backend instances. You must create firewall rules that allows traffic from those
ranges to reach your instances
For Network load balancing
When a health check is used with Network load balancing, the health check probes
come from addresses in the ranges 209.85.152.0/22, 209.85.204.0/22, and
35.191.0.0/16.
For HTTP(S). SSL proxy. TCP proxy, and Internal load balancing
When a health check is used with HTTP(S), SSL proxy, TCP proxy, or Internal load
balancing, the health check probes come from addresses in the ranges 130.211.0.0/22
and 35.191.0.0/16.
D) This is not mandatory since your LB could be Internal load balancing so instances'
external IPs may be removed
You are working on a project with two compliance requirements. The first requirement
states that your developers should be able to see the Google Cloud Platform billing
charges for only their own projects. The second requirement states that your finance
team members can set budgets and view the current charges for all projects in the
organization. The finance team should not be able to view the project contents. You
want to set permissions.
What should you do?
[ ] A) Add the finance team members to the default IAM Owner role. Add the developers
to a custom role that allows them to see their own spend only.
[ ] B) Add the finance team members to the Billing Administrator role for each of the
billing accounts that they need to manage. Add the developers to the Viewer role for the
Project.
[ ] C) Add the developers and finance managers to the Viewer role for the Project.
,[ ] D) Add the finance team to the Viewer r - Answer-Correct answer B
Feedback:
B) (Correct Answer) Is correct because it uses the principle of least privilege for IAM
roles; use the Billing Administrator IAM role for that job function.
A, C, and D are not correct because is it a Google best practice to use pre-defined IAM
roles when they exist and match your business scenario; see the link below.
Reference
IAM for Billing:
Dress4Win has configured a new uptime check with Google Stackdriver for several of
their legacy services. The Stackdriver dashboard is not reporting the services as
healthy.
What should they do?
[ ] A) In the Cloud Platform Console download the list of the uptime servers' IP
addresses and create an inbound firewall rule
[ ] B) Install the Stackdriver agent on all of the legacy web servers.
[ ] C) Configure their legacy web servers to allow requests that contain user-Agent
HTTP header when the value matches GoogleStackdriverMonitoring- UptimeChecks
(https://cloud.google.com/monitoring)
[ ] D) Configure their load balancer to pass through the User-Agent HTTP header when
the value matches GoogleStackdriverMonitoring-UptimeChecks
(https://cloud.google.com/monitoring) - Answer-Correct Answer A
Explanation
A) (Correct Answer) "If you are checking a service that is behind a firewall, you can
configure your service's firewall to accept traffic from the current set of IP addresses
used for uptime checking (Getting uptime-check IP addresses
https://cloud.google.com/monitoring/uptime-checks/#monitoring_uptime_check_list_ips-
console). https://cloud.google.com/monitoring/uptime-
checks/#identifying_uptime_check_traffic):
GoogleStackdriverMonitoring-UptimeChecks
(https://cloud.google.com/monitoring):
Regardless on instance or LoadBalancer level, as long as the firewall allowed, this user-
agent can pass through; also, there is no feature supporting User-Agent header value
associated firewall rule configuration.
Additional Resource
, For your quick reference, here are the part of Dress4win existing Application servers in
a single data center location:
• Tomcat - Java micro-services
• Nginx - static content
• Apache Beam - Batch processing
In moving their test and development environments to Google Cloud, what is the best
practice for Dress4Win to follow to ensure proper isolation between both environments
using the principle of least privilege?
[ ] A) Separate the test and dev environments into different projects, giving each team
access to only their own projects.
[ ] B) Separate the test and dev environments into different projects, with each team
sharing a single account to access each.
[ ] C) Host both environments in the same project but different VPC's.
[ ] D) Separate the test and dev environments into different projects, with different levels
of access for each team. - Answer-Correct Answer A
Explanation
A) (Correct answer) For least privilege and separation of duties, the best practice is to
separate both environments into different projects, development or test team gets their
own accounts, and each team is assigned to only their projects.
The best practices:
• You should not use same account for both Development and Test environments
regardless how do you create projects inside that account for different environments.
You should use different account for each environment which associated with different
group of users. You should use project to isolate user access to resource not to manage
users.
• Using a shared VPC allows each team to individually manage their own application
resources, while enabling each application to communicate between each other
securely over RFC1918 address space. So VPC's isolate resources but not user/service
accounts.
Answers B, C, and D are incorrect
B) is the scenario that use same account for both development and test environments
attempting to isolate user access with different projects
C) is the scenario that use same account for both development and test environments
with same project attempting to isolate user access with network separation. Note,
VPC's isolate resources but not user or service accounts.
D) is the scenario that use same account for both development and test environments
attempting to isolate user access with different projects