Top Pivotal Cloud Foundry(PCF) Interview Questions (2021) | CodeUsingJava
















Top Pivotal Cloud Foundry(PCF) Interview Questions


  1. What is meant by Pivotal Cloud Foundry?
  2. How PCF (Pivotal Cloud Foundry) is different from AWS (Amazon Web Services)?
  3. What is Cloud Foundry BuildPack?
  4. Difference between IaaS vs PaaS?
  5. What is BOSH in Cloud Foundry ?
  6. Difference between PCF DEV and PCF Enterprise?
  7. What is the difference between Cloud Foundry, PCF Dev, PCF and Pivotal Web services?
  8. What are the components of PCF?
  9. What are the advantages of PCF?
  10. How to see the old log files in PCF?
  11. Explain the architecture of PCF?
  12. What is Point coordination function?
  13. How to write PCF command to get channel status with a condition?
  14. How to know which parameter is incorrect in MQ PCF command?
  15. What is Cloud Foundry?
  16. What are the 3 services of PCF?
  17. How to force delete Queue on Qmanager with PCF commands?

What is meant by Pivotal Cloud Foundry?

  • Pivotal Cloud Foundry (PCF) is a multi-cloud framework for software, container and task development, maintenance and continuous delivery.
  • PCF is an open source Cloud Foundry distribution that Pivotal Software, Inc. has developed and maintained.
  • Pivotal Cloud Foundry abstracts the process of setting up and maintaining an application runtime environment to allow developers to focus exclusively on their apps and related data.


How PCF (Pivotal Cloud Foundry) is different from AWS (Amazon Web Services)?

Following is difference:
  • PCF - can be used as PaaS -[Platform as a Service]
  • AWS - can be used as IaaS -[Infrastructure as a Service]


What is Cloud Foundry BuildPack

Buildpacks offer support for applications in the system and runtime. Usually, buildpacks analyze the apps to decide which modules to install and how to set up applications to connect with attached providers. Cloud Foundry automatically detects an appropriate buildpack for it when you push an app. It Compiles and prepare the app for release using this buildpack.

Difference between IaaS vs PaaS?

PaaS - Platform as a Service
  • Cloud platform services, also known as Platform as a Service (PaaS), provide certain software with cloud components when used primarily for applications.
  • PaaS provides developers with a platform that they can develop on and use to create separate products.
  • The enterprise or a third-party provider can manage all servers, storage, and networking while the developers are able to maintain application.
  • PaaS allows companies to develop and build systems with special software modules that are built into the PaaS.
  • Such programs, also referred to as middleware, are versatile and highly available because they presume some cloud functionality.
  • Advantages of PaaS
  • Developers can develop apps without the need to manage the software
  • A substantial reduction in the amount of coding required
  • Highly accessible
  • Scalable
  • Accessible to many users via the same software for production
  • Builds on virtualization software, so as the company evolves, resources can be quickly expanded or decreased
  • Provides a variety of services to help develop, test and launch applications

IaaS: Infrastructure as a Service
  • Cloud infrastructure services, known as Infrastructure as a Service (IaaS), made of computer resources that are highly scalable and automated
  • IaaS provides complete self-service to connect and track machines, networking, storage and other resources.
  • IaaS allows companies to purchase on-demand and as-needed services instead of strictly purchasing hardware.
  • IaaS offers cloud computing services through virtualization technologies, including servers, network, operating systems, and storage.
  • Such cloud services are typically provided by a portal or an API to the enterprise, giving full control over the entire network to IaaS users.
  • IaaS clients manage aspects such as applications, runtime, operating systems, middleware, and data.
  • Some providers offer even more features beyond the framework of virtualization, such as servers and queuing emails.
  • Advantages of IaaS
  • Purchases of hardware can be based on consumption
  • Highly scalable
  • Clients retain full control of their infrastructure
  • Easy to automate deployment of storage, networking, servers, and processing power
  • Resources as a service are available
  • The cost depends on the consumption.
  • Organization retains full infrastructure oversight
PCF Interview Questions

What is BOSH in Cloud Foundry ?

  • BOSH is an open source tool for the release engineering, deployment, lifecycle management and monitoring.
  • BOSH is used by Cloud Foundry as the interaction layer with IAAS
  • BOSH enables abstraction and IAAS interaction to be standardized.
  • BOSH uses the Cloud Provide Interface to communicate with IAAS , which is implemented by the IAAS vendor


Difference between PCF DEV and PCF Enterprise ?

PCF DEV
  • PCF Dev is suitable for developers who want to explore and test PCF or those who are already actively developing PCF-based cloud-based applications
  • Working with PCF Dev, developers will experience PCF's power from rapid development cycles allowed by consistent, organized builds to unlocked operational excellence through integrated reporting, tracking, and health monitoring and management.
  • PCF Dev is a very slim variant of PCF operating on VirtualBox or VMWare Fusion on a single machine.
  • Essentially it was meant to run exclusively on a laptop or PC. PCF Dev comes with tiles from Redis, RabbitMQ, and MySQL OR RMQ, MySql, and SCS.
  • So, spinning up and deploying microservices and testing is a very good solution, a good quick turnaround option for the developer
PCF Enterprise
  • PCF Dev has no Bosh
  • As you called it, a PCF Enterprise is a production-built PCF foundation.
  • It has many characteristics. But some of the key characteristics are:
  • Secure by default
  • Self healing and Redundancy
  • Scalability
  • Polyglot support

What is the difference between Cloud Foundry, PCF Dev, PCF and Pivotal Web services?

CF - Cloud Foundry is a project with an open source. It is created by the Foundation of the Cloud. Anyone can take and run the parts of the opensource.
PCF - Pivotal Cloud Foundry is a commercial version of Cloud Foundry that is produced by Pivotal. It has commercial functionalities appended above and beyond what is available in Cloud Foundry's open source version, but is 100% Cloud Foundry compliant.
PCF Dev - PCF Dev is a scaled down PCF version that can be run in a VM on your local machine. It has developer-oriented apps that would like to work locally and possibly offline. It has not all of PCF's functionality. It's free, but mixed in commercial components.
Pivotal Web services - This is Pivotal's hosted version of Cloud Foundry. The core runs the latest bits of open source, but Pivotal also mixes some of the services offered by PCF. PCF Dev has some services, but not as many as PWS.

What is Pivotal Cloud Foundry (PCF)?

PCF(Pivotal Cloud Foundry) is an open source CF platform that includes additional features and services which will expand the capabilities of Cloud Foundry and make it easier, it is easy for deploying enterprise PCF as a PaaS solution on top of the cloud based infrastructure.

What are the components of PCF?

Components of PCF are as follows:
  • BOSH helps in deploying kubernets clusters, and acts like a deployment manager tool which is developed for using with Cloud Foundry.
  • Ops Manager helps in automating tasks and supporting the deployment of PCF into IaaS environments.
  • User Account and Authentication Server acts as a components of PCF controls identity and access management of the server.
  • Gorouter used by PCF for handling incoming requests from operators and developers.
  • Cloud Controller helps in centralizing API endpoints where developers and operators that sends commands to PCF and deploys application.
  • Diego acts as an container orchestration system for PCF deployments.
  • Loggregator helps in aggregating and streaming computer generating log and event files and metrics from all PCF's infrastructure components and application which are deployed.

What are the advantages of PCF?

PCF is compatible with large number of languages.
PCF also can be used in small and large application.
PCF acts as a centralised logging.
PCF can compute efficiencies.
PCF supports various IaaS providers.

How to see the old log files in PCF?


cf logs and cf logs --recent



Explain the architecture of PCF?


PCF


What is Point coordination function?

Point Coordination Function is an optional technique that is used in preventing collisions which are based WLAN standard including Wi-Fi, it is an access control sublayer technique used in arears where carrier sense multiple access with collision avoidance is used.PCF is used as a distributed coordination function which is used in centralised control system, and is present in the access point of the wireless network.

How to write PCF command to get channel status with a condition?


responses = agent.send(request);
for (int j = 0; j < responses.length; j++) {
    :
    :
    checkStatus = chStatusText[chlStatus];
}
System.out.println("chl: " + channelName + " STATUS: " + checkStatus  + ")");



How to know which parameter is incorrect in MQ PCF command?


PCFMessageAgent agent = new PCFMessageAgent(queueManager);
agent.setCheckResponses(false);
PCFMessage[] responses;
PCFMessage request = new PCFMessage(MQConstants.MQCMD_CHANGE_Q);
responses = agent.send(request);



What is Cloud Foundry?

Cloud Foundry is used for supporting the development, management and continuous delivery of software applications and can be deployed on top of an IaaS tool such as AWS, vSphere or OpenStack which provides a set of features and specialized functions that helps organizations reduce the cost and complexity of configuring the underlying platform for their applications.

What are the 3 services of PCF?

The types of services in PCF are as follows:
IaaS - helps in managing application, data, runtime, middleware and operating system and outsource the service provider.
SaaS - helps in accessing application through a web based portal with associated resources managed by a cloud service provider.
PaaS - helps in managing applications and datas with capabilities managed by cloud services provider.

How to force delete Queue on Qmanager with PCF commands?


PCFMessage message = new PCFMessage (CMQCFC.MQCMD_CHANGE_Q);
message.addParameter(CMQC.MQCA_Q_NAME, name);
message.addParameter(CMQC.MQIA_INHIBIT_GET, CMQC.MQQA_GET_INHIBITED);
agent.send(message);